package com.mulanweb.api.module.model.base;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

import java.util.Date;

/**
 * Created by Administrator on 2016/8/15.
 */
public abstract class BaseChatHistory<M extends BaseChatHistory<M>> extends Model<M> implements IBean{

    public void setId(Long id){set("id",id);}

    public Long getId(){return get("id");}

    public void setContent(String content){set("content",content);}

    public String getContent(){return get("content");}

    public void setChatType(String type){set("chat_type",type);}

    public String getChatType(){return get("chat_type");}

    public void setToUserOpenid(String to_user_openid){set("to_user_openid",to_user_openid);}

    public String getToUserOpenid(){return get("to_user_openid");}

    public void setFromUseropenId(String from_user_openid){set("from_user_openid",from_user_openid);}

    public String getFromUseropenId(){return get("from_user_openid");}

    public void setSent_time(Long create_time){set("sent_time",create_time);}

    public Long getSent_time(){return get("sent_time");}

    public void setCreate_time(Date create_time){set("create_time",create_time);}

    public Date getCreate_time(){return get("create_time");}
}
